<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $site_E->title;?>-微小站</title>
<link href="/style/css/site/core.css" rel="stylesheet" type="text/css">
<link href="/style/css/site/common.css" rel="stylesheet" type="text/css">
<link href="/style/css/site/theme/<?php echo $theme_id;?>/core.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/style/js/do.js" data-cfg-corelib="/style/js/jquery.min.js"></script>
    
<script type="text/javascript">
	Do.add('common', {path: '/style/js/lib/common10.js', type: 'js'});
	Do.add('setting-eventhandler', {path: '/style/js/lib/setting_eventhandler4.js', type: 'js', requires: ['common']});
	Do.add('dialog-css', {path: '/style/css/site/dialog.css', type: 'css'});
	Do.add('dialog', {path: '/style/js/lib/dialog11.js', type: 'js', requires: ['dialog-css']});
	Do.add('slider', {path: '/style/js/lib/slider2.js', type: 'js'});
    Do.add('effects', {path: '/style/js/lib/jquery-ui-effects-core.min.js', type: 'js'});
	Do.add('room-setting', {path: '/style/js/lib/room-setting13.js', type: 'js'});
    Do.global('common', 'common-eventhandler');
	Do('common', 'setting-eventhandler');
	Do('slider', 'room-setting');
	var isRoomEmpty = false;
	var  isSiteFirstEnter = false;
</script>
<?php if($mvc == 'index_admin_info' || $mvc == 'index_admin_icon' || $mvc == 'index_admin_design'|| $mvc == 'index_admin_room') {?>
<link href="/style/css/site/setting.css" rel="stylesheet" type="text/css" />
<link id="sys-theme" href="" rel="stylesheet" type="text/css" />
<style id="init-theme">
    <?php echo $init_theme;?>
</style>
<?php }?>

<style id="custom-theme">




<?php echo $style_theme; ?>
<?php if($mvc == 'index_mod_bulletin' ){?>
.editor-toolbar { text-align:right; }
#text { width:98.5%;height:300px; }
form .item-submit { padding-left:0; }
form .item { margin-top:10px; }
form label { width:6em; }
.frm-addlink input { width:70%; }

<?php } else if($mvc == 'index_mod_forum'||$mvc == 'index_mod_modifyforum') {?>

.frm-addlink input { width:70%; }
form .item1 { margin-top:10px; }
form .item label { width:6em; }
<?php } else if($mvc == 'index_mod_comment') {?>
.post-comments {
    padding-left: 0px;
}
.commentlist {
    line-height: 130%;
    margin: 10px 0;
}
.commentlist li {
    -moz-border-bottom-colors: none;
    -moz-border-image: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: #F2F2F2 #F2F2F2 #F2F2F2 #BFBFBF;
    border-style: solid;
    border-width: 1px;
    font-size: 12px;
    list-style: none outside none;
    margin: 15px 10px 10px 0;
    padding: 5px 5px 10px 10px;
}
.comment-author {
    float: left;
}
.commentmetadata {
    display: block;
    float: right;
    margin: 0;
}
.commentmetadata a {
    color: #0068CA;
}
.commentlist img.photo{
    border: 1px solid #CCCCCC;
    padding: 2px;
    vertical-align:top;
    display:inline;
    margin-right:6px;
}
.commentlist p {
    clear: both;
    color: #666666;
    margin: 10px 5px;
    text-indent: 0;
    word-wrap:break-word;
    overflow:hidden;
}
.commentlist .alt {
   
}
.comment-reply-link {
    color: #0068CA;
}
.commentlist cite {
    color: #003399;
    font-size: 110%;
    font-style: normal;
    font-weight: bold;
}
.commentlist cite a, .commentlist cite a:visited {
    color: #F37526;
}
.commentlist small {
    display: block;
    font-size: 87%;
    margin-bottom: 5px;
}
.commentlist small a, .commentlist small a:visited {
    color: #999999;
}
.reply {
    text-align: right;
}
<?php } else if($mvc == 'index_admin_info') {?>



#sp-setting-form .item label { line-height: 1 }
#sp-setting-form .writer-setting label { width:9em; }
#sp-setting-form .writer-setting .note { padding-left:128px; }
form .item-group label { float:none;width:auto;font-size:12px;margin-right:1ex; }
form .item-group input { margin:0;  }
#sp-setting-form  .item-group label { font-size:12px; }
.feedback-tips {color:#333;}
#sp-setting-form .item .long { margin: 10px 0; font-size: 14px }
<?php }?>
        

.top-nav-info {
    margin-top: 0px;
}
</style>
   

</head>


<body id="<?php echo $site_E->id;?>" rid="<?php echo $current_room_E->id;?>">
<div class="wrapper">
	<div id="header">
		<div class="top-nav">
			<a href="#" class="logo">微小站</a>
			<div class="top-nav-info">
			<?php if($is_login){?>
				<?php if(!empty($self_site_E)){?>
				<a href="<?php echo $this->getUrl("index","site","index", array("siteid"=>$self_site_E->id));?>">我的小站</a>
				<?php } else {?>
				<a href="<?php echo $this->getUrl("index","index","apply");?>">开通小站</a>
				<?php }?>
			    <a target="_blank" href="<?php echo $user_E->getHref();?>"><img src="<?php echo $user_E->getIcon();?>" >@<?php echo $user_E->getName();?></a>
			    <a href="<?php echo $this->getUrl("index","auth","logout",array(),array("url"=>$url));?>">退出</a>
			 <?php }else {?>
			 	<a href="<?php echo $this->getUrl("index","auth","token",array(),array("sources"=>"sina","url"=>$url));?>">
			 	<img style="height:22px;top:-5px;" src="/pics/site/sina24.png"/></a>
			 	<a href="<?php echo $this->getUrl("index","auth","token",array(),array("sources"=>"qq","url"=>$url));?>">
			 	<img style="height:22px;top:-5px;" src="/pics/site/qq24.png"/></a>
			 <?php }?>
			</div>
        </div>
        <div class="sp-nav">
        	<div class="sp-logo">
        		<a href="/" class="logo">
        		<img src="/pics/blank.gif" style="background:url(<?php $logo =  $site_E->logo;if(empty($logo)) echo "/pics/site/icon_default_small.png"; else echo $site_E->getSmalllogo();?>) no-repeat 0 0;" width="48" height="48">
        		<?php echo $site_E->title;?>
        		</a>
            </div>
			<div class="nav-items">
			    <ul>
			    	<?php foreach($room_ES as $k => $room_E){?>
			        <li <?php if($room_E->id == $current_room_E->id)  {?> class="on" <?php }?>>
			            <a href="<?php echo $this->getUrl("index","site","index",array("siteid"=>$site_E->id,"roomid"=>$room_E->id));?>" hidefocus="true">
			            <span><?php echo $room_E->name;?></span>
			            <?php if($RootOper == 1 && $mvc == 'index_site_index'){?>
				            <?php if($room_E->id == $current_room_E->id){?>
				            <em title="房间设置">房间设置</em> 
				            <?php }?>
				        <?php }?>
			            </a>
			        </li>
			    	<?php }?>
					<?php if($RootOper == 1){?>
			        <li id="room-admin" class="opt">
			            <a id="admin-icon"  href="<?php echo $this->getUrl("index","admin","info",array("siteid"=>$site_E->id));?>">管理</a>
			        </li>
			     	<?php }?>
			    </ul>
			</div>

				<?php if($RootOper == 1 && $mvc == 'index_site_index'){?>
				<script>
				
					<?php if($isSiteFirstEnter) {?>
					 var  isSiteFirstEnter = true;
					<?php }else {?>
					 var  isSiteFirstEnter = false;
					<?php }?>
					
					
					<?php if($isRoomEmpty) {?>
						var isRoomEmpty = true;
					<?php }else {?>
						var isRoomEmpty = false;
					<?php }?>
				   
				    //栏目设置激活
				    Do(function(){$(function(){$('.mod:has(.edit)').live('mouseenter', function(e){ $(e.currentTarget).addClass('mod-stat-active'); }).live('mouseleave', function(e){ $(e.currentTarget).removeClass('mod-stat-active');});});});
				</script>
				<?php }?>
		</div>
		<?php if($RootOper == 1 && $mvc == 'index_site_index'){?>
		<div class="sp-fn-box">
		    <a class="box-close" href="#">x</a>
		    <div class="room-box">
		        <input id="room-rename" type="text" value="<?php echo $current_room_E->name;?>" maxLength="15" />
		        <label class="icon-save">保存</label>
		        <span id="type-normal" class="widget-tips selected">
		            小站公共应用
		        <em>▶</em></span>
				<a class="room-del" hidefocus="true" id="<?php echo $current_room_E->id;?>" href="#">删除房间</a>
		    </div>
		
		    <div class="widgets-box" id="widget-normal">
		        <div class="widgets-slider">
		            <ul class="list-s slider">
						<?php if(!empty($widget_ES)) foreach($widget_ES as $v => $widget_E){?>
						<li>
						    <div class="intro">
						        <h2><?php echo $widget_E->name;?></h2>
						        <p><?php echo $widget_E->descript;?></p>
						    </div>
						    <a href="#" id="k-<?php echo $widget_E->id;?>" class="lnk-add">添加</a>
						</li>
						<?php }?>
		            </ul>
		        </div>
		        <div class="slider-switcher">
		            <ul class="list-s switcher-dot"></ul>
		            <span class="switcher-prev switcher-dis">&lt;</span>
		            <span class="switcher-next">&gt;</span>
		        </div>
		    </div>
		</div>
		<?php }?>

	</div><!-- header end-->
<!-- wrapper not end -->
	